/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.devmng.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 任务详情Entity
 * @author panda
 * @version 2017-12-24
 */
public class TaskDetail extends DataEntity<TaskDetail> {
	
	private static final long serialVersionUID = 1L;
	private String deviceMainId;		// 设备ID
	private String deviceName;		// 设备名称
	private String monthFlag;		// 月标识
	private String yearFlag;		// 年标识
	private String halfYearFlag;		// 半年标识
	private String quarterFlag;		// 季度标识
	private String taskMainId;		// 任务ID
	
	public TaskDetail() {
		super();
	}

	public TaskDetail(String id){
		super(id);
	}

	@Length(min=0, max=64, message="设备ID长度必须介于 0 和 64 之间")
	public String getDeviceMainId() {
		return deviceMainId;
	}

	public void setDeviceMainId(String deviceMainId) {
		this.deviceMainId = deviceMainId;
	}
	
	@Length(min=0, max=50, message="设备名称长度必须介于 0 和 50 之间")
	public String getDeviceName() {
		return deviceName;
	}

	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}
	
	@Length(min=0, max=1, message="月标识长度必须介于 0 和 1 之间")
	public String getMonthFlag() {
		return monthFlag;
	}

	public void setMonthFlag(String monthFlag) {
		this.monthFlag = monthFlag;
	}
	
	@Length(min=0, max=1, message="年标识长度必须介于 0 和 1 之间")
	public String getYearFlag() {
		return yearFlag;
	}

	public void setYearFlag(String yearFlag) {
		this.yearFlag = yearFlag;
	}
	
	@Length(min=0, max=1, message="半年标识长度必须介于 0 和 1 之间")
	public String getHalfYearFlag() {
		return halfYearFlag;
	}

	public void setHalfYearFlag(String halfYearFlag) {
		this.halfYearFlag = halfYearFlag;
	}
	
	@Length(min=0, max=1, message="季度标识长度必须介于 0 和 1 之间")
	public String getQuarterFlag() {
		return quarterFlag;
	}

	public void setQuarterFlag(String quarterFlag) {
		this.quarterFlag = quarterFlag;
	}
	
	@Length(min=0, max=64, message="任务ID长度必须介于 0 和 64 之间")
	public String getTaskMainId() {
		return taskMainId;
	}

	public void setTaskMainId(String taskMainId) {
		this.taskMainId = taskMainId;
	}
	
}